const getters = {
    //user
    userInfo: (state) => state.user.userInfo,
    userSongsMenu: (state) => state.user.userSongsMenu,
    userLikedMusic: (state) => state.user.userLikedMusic,
    isLiked: (state) => (id) => {
        return state.user.userLikedMusic.find((uid) => uid === id);
    },
    //state
    isLogin: (state) => state.state.isLogin,
    isPlay: (state) => state.state.isPlay,
    //song
    songsId: (state) => state.song.songsId,
    currentTime: (state) => state.song.currentTime,
    //list
    playList: (state) => state.list.playList,
    menuFunction: (state) => state.list.menuFunction,
}
export default getters;
